package com.welsy.authoring.event
{
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import flash.events.Event;

	/**
	  * The event triggered on course components retrieval
	  * @author Welsy.org
	  */
	public class AddCourseEvent extends CairngormEvent
	{
		// The string which describes this event
		public static var EVENT_ADD_COURSE : String = "addCourseEvent";

		public var courseId : String;
		public var parentCourseId : String;
		public var title : String;
		public var titleUser : String;
		public var authorId : String;
		public var mapView : String;
		public var navigationMap : String;
		public var state : String;
				
		/**
		  * The event registration setup
		  * Connects a unique string to this event
		  */
		public function AddCourseEvent( courseId : String, parentCourseId : String, title : String, titleUser : String, authorId : String, mapView : String, navigationMap : String, state : String )
		{
			super( EVENT_ADD_COURSE );
			
			this.courseId = courseId;
			this.parentCourseId = parentCourseId;
			this.title = title;
			this.titleUser = titleUser;
			this.authorId = authorId;
			this.mapView = mapView;
			this.navigationMap = navigationMap;
			this.state = state;
		}	
	}
	
}